<?php
namespace Xiaoc\Model;

use PhalApi\Model\NotORMModel as NotORM;

/**

CREATE TABLE `phalapi_curd` (
    `id` int(10) NOT NULL AUTO_INCREMENT,
    `title` varchar(20) DEFAULT NULL,
    `content` text,
    `state` tinyint(4) DEFAULT NULL,
    `post_date` datetime DEFAULT NULL,
    PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

 */

class Users extends NotORM {

    protected function getTableName($id) {
        return 'users';
    }


    public function getListTotal($state) {


		$rs = \PhalApi\DI()->notorm->user_account->fetchRow();
		return $rs;
        //$total = $this->getORM();

        //return $total;
    }

	public function testModel() {
        return array(1,2,3,4);
    }
}
